from rest_framework.routers import DefaultRouter
from django.conf.urls import url, include

from .views import CityViewSet, CityPageViewSet, DanceCompanyViewSet
router = DefaultRouter()

router.register(r'citys', CityViewSet, base_name="city")
router.register(r'city_pages', CityPageViewSet, base_name="city_pages")
router.register(r'dance_companys', DanceCompanyViewSet, base_name="dance_companys")

urlpatterns = [
    url(r'^', include(router.urls)),
]